package com.marketingcenter.service;

import com.marketingcenter.entity.MChooseNCard;

/**
 * M选N权益卡服务接口
 */
public interface MChooseNCardService extends PromotionService<MChooseNCard> {

    /**
     * 用户购买M选N权益卡
     */
    boolean purchaseMChooseNCard(Long cardId, Long userId);

    /**
     * 用户选择权益选项
     */
    boolean selectOptions(Long cardId, Long userId, Long[] optionIds);

    /**
     * 查询用户已选择的选项
     */
    Long[] getUserSelectedOptions(Long cardId, Long userId);

}